const { expressjwt } = require("express-jwt");
const whiteRoute = require("@/routes/white");

// JWT验证中间件
const authenticateJwt = expressjwt({
  secret: process.env.JWT_KEY,
  algorithms: ["HS256"],
}).unless({ path: whiteRoute });

module.exports = authenticateJwt;
